package com.ohs.utils;

import lombok.Data;

@Data
public class JsonResult {
    private Integer state;  //表示状态
    private String message;  //表示封装信息
    private Object data;  //表示返回给客户端的数据

    public JsonResult() {
    }

    public JsonResult(Integer state, String message) {
        this.state = state;
        this.message = message;
    }

    public JsonResult(Integer state, Object data) {
        this.state = state;
        this.data = data;
    }

    public JsonResult(Integer state, String message, Object data) {
        this.state = state;
        this.message = message;
        this.data = data;
    }
}
